﻿using System.Collections.Generic;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.DataAccess
{
    public partial class DAL_CensusData
    {

        /// <summary>
        /// [future] Gets the layer field data.
        /// </summary>
        /// <param name="iLayerID">The i layer ID.</param>
        /// <returns></returns>
        /// <remarks>[future] SPROC: usp_GetLayerFieldData</remarks>
        public List<LayerFieldDataDTO> GetLayerFieldData(int iLayerID)
        {
            List<LayerFieldDataDTO> itemList = new List<LayerFieldDataDTO>();

            //Database db = Connect();
            //DbCommand dbCommand = db.GetStoredProcCommand("usp_GetLayerFieldData");
            //db.AddInParameter(dbCommand, "iLayerID", DbType.String, iLayerID);
            //using (IDataReader rdr = db.ExecuteReader(dbCommand))
            //{
            //    while (rdr.Read())
            //    {
            //        itemList.Add(LayerFieldDataDTODataContract.DataContract(rdr));
            //    }
            //}
            return itemList;
        }
    }
}
